#include<string>
#include<iostream>
using namespace std;
class Student //??Student?
{
   public :
   Student(int n,string nam,char s ) //??????
   {
      num=n;
      name=nam;
      sex=s;
      cout<<"Constructor called."<<endl; //??????
   }
   ~Student( ) //??????
   {
      cout<<"Destructor called. The num is "<<num<<"."<<endl;
   } //??????
   void display( ) //??????
   {
      cout<<"num: "<<num<<endl;
      cout<<"name: "<<name<<endl;
      cout<<"sex: "<<sex<<endl<<endl;
   }
   private :
   int num;
   string name;
   char sex;
};

int main( )
{
   Student stud1(10010,"Wang_li",'f'); //????stud1
   stud1.display( ); //????1???
   Student stud2(10011,"Zhang_fun",'m'); //????stud2
   stud2.display( ); //????2???
   return 0;
}